//
//  ZDOldManModel.m
//  ZDPension
//
//  Created by 刘甲奇 on 2017/6/14.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDOldManModel.h"

@implementation ZDOldManModel
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.username forKey:@"username"];
    [aCoder encodeObject:self.state forKey:@"state"];
    [aCoder encodeObject:self.number forKey:@"number"];
    [aCoder encodeObject:self.idcard forKey:@"idcard"];
    [aCoder encodeObject:self.key forKey:@"key"];
    
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.username = [aDecoder decodeObjectForKey:@"username"];
        self.state = [aDecoder decodeObjectForKey:@"state"];
        self.number = [aDecoder decodeObjectForKey:@"number"];
        self.idcard = [aDecoder decodeObjectForKey:@"idcard"];
        self.key = [aDecoder decodeObjectForKey:@"key"];
    }
    return self;
}

@end
